<?php
	error_reporting(0);
	session_start();
//	$_SESSION['fg'] = 72146;echo $_SESSION['fg'];exit;
    require_once('init.php');
	$GLOBALS['dbsf'] = new mysqls("send");
	$fg = $_SESSION['fg'];
	$num = rand(30,39);
	$sql = "update testsend set numId = $fg where flag=0 order by id desc limit $num";
	$GLOBALS['dbsf']->dbquery($sql);
	$sqls = "update testsend set flag=1 where numId = $fg";
	echo $sqls."<br/>";
	$GLOBALS['dbsf']->dbquery($sqls);
	$sqli = "insert into firstSort(id,type) values($fg,43)";
	echo $sqli;
	$GLOBALS['dbsf']->dbquery($sqli);
	$_SESSION['fg'] = $_SESSION['fg']+1;
?>
